#include "include/plot.h"

Plot::Plot(QWidget *parent, const QGLWidget *shareWidget) :
    GridPlot(parent, shareWidget)
{
    setTitle("Test Title");

    Parabolic parabolic(this);

    parabolic.setMesh(41, 31);
    parabolic.setDomain(-1.73, 1.5, -1.5, 1.5);
    parabolic.setMinZ(-10);

    parabolic.create();

    setRotation(30, 0, 15);
    setScale(1, 1, 1);
    setShift(0.15, 0, 0);
    setZoom(0.9);

    for (unsigned i=0; i!=coordinates()->axes.size(); ++i)
    {
        coordinates()->axes[i].setMajors(7);
        coordinates()->axes[i].setMinors(4);
    }


    coordinates()->axes[X1].setLabelString("x-axis");
    coordinates()->axes[Y1].setLabelString("y-axis");
    coordinates()->axes[Z1].setLabelString(QChar (0x38f)); // Omega - see http://www.unicode.org/charts/


    setCoordinateStyle(BOX);

    updateData();
    updateGL();
}
